package cn.rongdao.jrkabao.model.main.personal;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.deposit.AccountInfoBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2017/7/29
 */

public class PersonUserInfoModel extends BaseKaMaoModel {

    public static PersonUserInfoModel getInstance() {
        return getPresent(PersonUserInfoModel.class);
    }

    public void execute(Observer<AccountInfoBean> observer) {
        Observable<AccountInfoBean> observable = mServletApi.getUserBalance(mParams).map(new HttpFunction<AccountInfoBean>());
        toSubscribe(observable, observer);
    }
}
